package com.wl2o2o.lanqiao.xzfourteen;
/** 
* @author : WLei224
* @date ：2023年3月29日 上午1:14:30 
* 
*/
public class HundredMoneyByChicken {

	public static void main(String[] args) {
		for (int gongji = 0; gongji <= 20; gongji++) {
			for (int muji = 0; muji <= 33; muji++) {
				int xj = 100 - gongji - muji;
				if(xj % 3 == 0 && 5*gongji + 3*muji + xj/3 == 100) {
					System.out.println("公鸡:" + gongji +"母鸡" + muji + "小鸡" + (100 - gongji - muji) );
				}
					
			}
		}
	}

}
